import request from './request';

export async function getMessages(page = 1, limit = 10) {
    return await request.get('/api/message', {
        params: {
            page,
            limit
        }
    });
}

export async function postMessage(commentInfo) {
    return await request.post('/api/message', commentInfo);
}